package com.software.form.shippingorder.dao;

import java.util.List;

public class ShippingOrderTransaction {

	private ShippingOrderDao shippingOrderDao;

	public ShippingOrderDao getShippingOrderDao() {
		return shippingOrderDao;
	}

	public void setShippingOrderDao(ShippingOrderDao shippingOrderDao) {
		this.shippingOrderDao = shippingOrderDao;
	}
	
	public boolean add(String cno,String ino,String motoEmail,int status){
		ShippingOrder so = new ShippingOrder();
		so.setCno(cno);
		so.setIno(ino);
		so.setEmail(motoEmail);
		so.setStatus(status);
		return shippingOrderDao.add(so);
	}
	
	public List<ShippingOrder> getOrdersByEmail(String email,int status){
		return shippingOrderDao.queryByEmailStatus(email, status);
	}
}
